﻿@model ProjectManagement.Domain.Entities.User

@{
	ViewBag.Title = "详细信息";
	Layout = null;
}

<h2>详细信息</h2>
<link href="@Url.Content("~/Content/images/right.css")" rel="stylesheet" type="text/css" />
<fieldset>
    <legend>用户信息</legend>

    <div class="display-label">用户名</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserName)
		<br />
		@Html.Label("拥有的角色")
		@ViewBag.RoleName
    </div>
    <div class="display-label">真实姓名</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RealName)
    </div>

    <div class="display-label">密码</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Password)
    </div>

    <div class="display-label">生日</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Birthday)
    </div>

    <div class="display-label">性别</div>
    <div class="display-field">
        @Html.SexHelper(Model.Sex)
    </div>

    <div class="display-label">邮箱</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label">手机</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MobilePhone)
    </div>

    <div class="display-label">头像</div>
    <div class="display-field">
	@if (Model.ImageUrl!=null)
 {		<div style="width:100px;height:150px">
			<img src="@Model.ImageUrl" alt="photo" style="width:100px;height:150px"/>
		</div>
 }
 else
 {
	<div style=""></div>
 }
    </div>

    <div class="display-label">所在省市</div>
    <div class="display-field">
        @Html.ReturnPro(Model.Provience)
		@Html.ReturnCity(Model.City)
    </div>
    <div class="display-label">地址</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Address)
    </div>
    <div class="display-label">注册时间</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RegisterTime)
    </div>

    <div class="display-label">最后登陆时间</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastLogonTime)
    </div>

    <div class="display-label">最近登录IP地址</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IP)
    </div>
</fieldset>
<p>
    @Html.ActionLink("编辑用户信息", "EditUsers", new { Id=Model.ID }) |
    @Html.ActionLink("用户列表", "UserList")
</p>
